package com.hm.base.def;

/**
 * @author shishun.wang
 * @date 上午11:06:29 2017年8月7日
 * @version 1.0
 * @describe
 */
public enum RegionTypeEnum {

	COUNTRY(0, "国家"),

	PROVINCE(1, "省份"),

	CITY(2, "市级"),

	AREA(3, "区级/县级");

	private int status;

	private String desc;

	private RegionTypeEnum(int status, String desc) {
		this.status = status;
		this.desc = desc;
	}

	public String desc() {
		return this.desc;
	}

	public int status() {
		return this.status;
	}

	public static RegionTypeEnum trance(int status) {
		for (RegionTypeEnum enumTmp : RegionTypeEnum.values()) {
			if (enumTmp.status == status) {
				return enumTmp;
			}
		}
		return null;
	}

}
